package com.huawei.esdk.tp.cxf.enumgen;

public abstract class ConfSiteStatusMapping {

    public final static int MIN = 0;
    public final static int MAX = 5;
    public static Integer enum2Int(ConfSiteStatus videoFormat) {
        if (null == videoFormat)
        {
            return null;
        }
        switch (videoFormat) {
        case UNKNOW: {
            return 0;
        }
        case NOEXIST:{
            return 1;
        }
        case CONNECTED: {
            return 2;
        }
        case DISCONNECTED: {
            return 3;
        }
        case CONNECTING: {
            return 4;
        }
        case RINGING: {
            return 5;
        }
        default: {
            return null;
        }
        }
    }

    public static ConfSiteStatus int2Enum(Integer num) {
        if(null==num){
            return null;
        }
        switch (num) {
        case 0: {
            return ConfSiteStatus.UNKNOW;
        }
        case 1: {
            return ConfSiteStatus.NOEXIST;
        }
        case 2: {
            return ConfSiteStatus.CONNECTED;
        }
        case 3: {
            return ConfSiteStatus.DISCONNECTED;
        }
        case 4: {
            return ConfSiteStatus.CONNECTING;
        }
        case 5: {
            return ConfSiteStatus.RINGING;
        }
        default: {
            return null;
        }
        }
    }



}
